# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo1111
# Description:
# Author:       yzl
# Date:         2019-02-07
#-------------------------------------------------------------------------------

import re

m = re.match('hello','hello')
if m is not None:
    print(m.group())
print(m.__class__.__name__)

m = re.match('hello','world')
if m is not None:
    print(m.group())
print(m)

m = re.match('hello','hello world')
if m is not None:
    print(m.group())
print(m)